package com.wind.taobao.api.trade.product.rest
{
	import com.wind.taobao.api.trade.product.convert.ProductConvert;
	import com.wind.taobao.api.trade.product.model.Product;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	/**
	 * taobao.product.get Response
	 * @author fxy
	 *
	 */
	public class ProductGetResponse extends TaobaoResponse
	{
		public var product:Product;

		public function ProductGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initProduct();
		}

		private function initProduct():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("product"))
					product=ProductConvert.convertProduct(body["rsp"]["product"]);
			}
		}

	}
}